package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ProjectName: IEIS2
 * @Package: com.indusfo.spc.pojo
 * @ClassName: Badcause
 * @Author:  熊冰
 * @Description: ${description}
 * @Date: 2019/8/8 15:41
 * @Version: 1.0
 * 不良原因pojo类
 */

@Table(name = "ba_badcause")
public class Badcause  extends BasePojo {

	private static final long serialVersionUID = 3608498958264018856L;

	@Id
    @Column(name = "badcause_id",insertable=false)
    //不良原因编号
    private Integer badcauseId;

    //不良原因名称
    private String badcauseName;

    //不良原因类型
    private Integer badcauseTypeId;

    //不良原因类型名称
    private String badcauseTypeName;

    //备注
    private String remark;

    //数据状态 1 启用 2 删除 3停用
    private Integer dataState;


    public Integer getBadcauseId() {
        return badcauseId;
    }

    public void setBadcauseId(Integer badcauseId) {
        this.badcauseId = badcauseId;
    }

    public String getBadcauseName() {
        return badcauseName;
    }

    public void setBadcauseName(String badcauseName) {
        this.badcauseName = badcauseName== null ? null : badcauseName.trim().replace(" ","");
    }

    public Integer getBadcauseTypeId() {
        return badcauseTypeId;
    }

    public void setBadcauseTypeId(Integer badcauseTypeId) {
        this.badcauseTypeId = badcauseTypeId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getBadcauseTypeName() {
        return badcauseTypeName;
    }

    public void setBadcauseTypeName(String badcauseTypeName) {
        this.badcauseTypeName = badcauseTypeName;
    }

    @Override
	public String toString() {
		return "Badcause [badcauseId=" + badcauseId + ", badcauseName=" + badcauseName + ", badcauseTypeId="
				+ badcauseTypeId + ", badcauseTypeName=" + badcauseTypeName + ", remark=" + remark + ", dataState="
				+ dataState + "]";
	}

	public String BasePojoToString() {
        return super.toString();
    }

    public Badcause() {
    }

    public Badcause(String badcauseName, String badcauseTypeName) {
        this.badcauseName = badcauseName;
        this.badcauseTypeName = badcauseTypeName;
    }
}
